{literal}
<script language="javascript" type="text/javascript">
$(function(){
	$('.date-pick').datePicker({startDate:'01/01/1996'});			
});
</script>
{/literal}
<div>
	{if $mid eq 0}
    <input type="button" name="btn_back" value="Back" onclick="location.href='?mod=camu&a=viewtest&op=2&m={$mid}&u={$unitid}';" />
    {else}
    <input type="button" name="btn_back" value="Back" onclick="location.href='?mod=camu&a=viewtest&op=1&m={$mid}&u={$unitid}';" />
    {/if}
</div>
<div>
<form name="frm_addtest" action="" method="post" >
<table width="100%" border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse;">
	<tr>
    	<td width="100">Title</td>
        <td><input type="text" name="ttitle" value="" size="40" maxlength="255" /></td>
    </tr>
    <tr>
    	<td>Description</td>
        <td><textarea name="test_desc" wrap="virtual" rows="7" cols="40"></textarea></td>
    </tr>
    <tr>
    	<td>Dead line</td>
        <td><input name="deadline" id="date1" class="date-pick" /></td>
    </tr>
    <tr>
    	<td width="100">Time limit</td>
        <td><input type="text" name="timelimit" value="" size="5" maxlength="5" /> minutes</td>
    </tr>
    <tr>
    	<td colspan="2" align="center"><input type="submit" name="btn_submit" value="Save" /></td>
    </tr>
</table>
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="unitid" value="{$unitid}" />
</form>
</div>